home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 187_01 / skptok.c < prev    next >
C/C++ Source or Header  |  1985-12-29  |  889b  |  24 lines

  1. /*@*****************************************************/
  2. /*@                                                    */
  3. /*@ skptok - skip over a token (to next delimiter).    */
  4. /*@        A blank, ';', or NULL will terminate it.    */
  5. /*@                                                    */
  6. /*@   Usage:     skptok(cbuf);                         */
  7. /*@       where cbuf is a pointer to characters.       */
  8. /*@                                                    */
  9. /*@   Returns a pointer to the char which terminated   */
  10. /*@      the scan (i.e. the blank, ';' or NULL).       */
  11. /*@                                                    */
  12. /*@*****************************************************/
  13.  
  14. #define NULL 0x00
  15.  
  16. char *skptok(cbuf)
  17. char *cbuf;
  18. {
  19.         /* skip token in buffer */
  20.     for(;(*cbuf != ' ') && (*cbuf != ';') && (*cbuf != NULL);cbuf++)
  21.         ;
  22.     return (cbuf);
  23. }
  24.